package jobs

import (
	"fmt"
	. "goravel/app/services/queues"
)

type DownloadParseJob struct {
	downloadParseService DownloadParseService
}

// Signature The name and signature of the job.
func (receiver *DownloadParseJob) Signature() string {
	return "download_parse_job"
}

// Handle Execute the job.
func (receiver *DownloadParseJob) Handle(args ...any) error {
	fmt.Println("DownloadParseJob==handle")
	downloadIns := receiver.downloadParseService.NewDownloadParseService()
	downloadIns.DownloadParseStart()
	return nil
}

// DownloadParseJobArgs The arguments of the job.
type DownloadParseJobArgs struct {
}

// Signature The name and signature of the job.
func (receiver *DownloadParseJobArgs) Signature() string {
	return "download_parse_job_args"
}

// Handle Execute the job.
func (receiver *DownloadParseJobArgs) Handle(args ...any) error {

	return nil
}
